public class NumbersPracticesss {
	public static void main(String[] args) {
		// digits(23335);
		getnPalindrome();
	}

	private static void getnPalindrome() {
		for (int i = 100; i < 1000; i++) {
			int n = i;
			int sumSqDgts = 0;
			int a;
			while (n > 0) {
				a = n % 10;
				n /= 10;
				// System.out.println(n);
				sumSqDgts += a * a * a;
			}
			if (i == sumSqDgts) {
				System.out.println("ArmsSq " + i);
			}
		}

	}

	private static void digits(int n) {
		int a;
		while (n > 0) {
			a = n % 10;
			n /= 10;
			System.out.println(a);
		}
	}
}
